<template>
  <slot v-if="getUserAuthBtnList" />
</template>

<script lang="ts" setup>
import { computed, PropType } from 'vue';

const props = defineProps({
	value: {
		type: Array as PropType<Array<string>>,
		default: () => [],
	},
});
const getUserAuthBtnList = computed(() => {
	let flag = false;
	['btn.add', 'btn.edit', 'btn.del', 'btn.link'].map((val: any) => {
		props.value.map((v) => {
			if (val === v) flag = true;
		});
	});
	return flag;
});
</script>
